<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" 
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns:jsp="http://java.sun.com/JSP/Page"
	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ci="http://java.sun.com/jsp/jstl/core"
	xmlns:c="http://sourceforge.net/projects/jsf-comp"
	xmlns:fn="http://java.sun.com/jsp/jstl/functions"
	xmlns:t="http://myfaces.apache.org/tomahawk"
    xmlns:p="http://primefaces.org/ui">
    
	<ui:composition template="/template/pCliente.xhtml">	 		 
	  <ui:define name="head">
	    <title>Asesor 360</title>
	    <script type="text/javascript">
	  		function cargarReportes(){
	  		 window.open("${request.contextPath}/doc/conservador.pdf" , "ventana1" , "");	  		
	  		 window.open("${request.contextPath}/doc/perfilador.pdf", "ventana2" , "")  
	  		}
	  		
	  		$(document).ready(function () {
	  		  // Set specific variable to represent all iframe tags.
	  		  var iFrames = document.getElementsByTagName('iframe');

	  		  // Resize heights.
	  		  function iResize() {
	  		    // Iterate through all iframes in the page.
	  		    for (var i = 0, j = iFrames.length; i &lt; j; i++) {
	  		    // Set inline style to equal the body height of the iframed content.
	  		      iFrames[i].style.height = iFrames[i].contentWindow.document.body.offsetHeight + 'px';
	  		    }
	  		  }

	  		 // Check if browser is Safari or Opera.
	  		 if ($.browser.safari || $.browser.opera) {
	  		    // Start timer when loaded.
	  		    $('iframe').load(function () {
	  		    setTimeout(iResize, 0);
	  		    });

	  		   // Safari and Opera need a kick-start.
	  		   for (var i = 0, j = iFrames.length; i &lt; j; i++) {
	  		     var iSource = iFrames[i].src;
	  		     iFrames[i].src = '';
	  		     iFrames[i].src = iSource;
	  		   }
	  		 } else {
	  		    // For other good browsers.
	  		    $('iframe').load(function () {
	  		    // Set inline style to equal the body height of the iframed content.
	  		    this.style.height = this.contentWindow.document.body.offsetHeight + 'px';
	  		    });
	  		  }
	  		});
	  	</script>
	  </ui:define>
	 
	 <ui:define name="titulopagina">
			<h:outputText value="ENCUESTA DEL CLIENTE" />
	 </ui:define>
		
	  <ui:define name="bodyarea">
	  	<f:event type="preRenderView" listener="#{encuestaClienteController.onPageLoad}"/>
		<ui:include src="/pages/includes/Encuesta_body.jspx" />	    
	  </ui:define>
	 
	  <ui:define name="extraarea">
<!-- 		   <ui:include src="/pages/includes/Encuesta_modal.jspx" />		    -->
	  </ui:define>
	</ui:composition>
</html>